//
//  MemberCell.m
//  Utils
//
//  Created by enghou on 2018/6/29.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

#import "MemberCell.h"
#import "NetPath.h"
@interface MemberCell()

@property (weak, nonatomic) IBOutlet UIImageView *headImageView;

@property (weak, nonatomic) IBOutlet UILabel *sexLabel;

@property (weak, nonatomic) IBOutlet UILabel *ageLabel;

@property (weak, nonatomic) IBOutlet UILabel *populationLabel;

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UILabel *cardNumberLabel;

@end

@implementation MemberCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setModel:(MembersItemModel *)model{
    _model = model;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/%@",ServerPath,_model.imgUrl]] placeholderImage:[UIImage imageNamed:@"emtyp_head"]];
    self.sexLabel.text = _model.genderName;
    self.populationLabel.text = _model.personCategory;
    self.nameLabel.text = _model.name;
    self.cardNumberLabel.text = _model.idCardNo;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
